package com.peas.platform.common.core.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public abstract class BaseVo implements Serializable {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty(value = "删除标识(0未删除、1已删除)")
    @ApiParam(hidden = true)
    private Integer deleted;

    @ApiModelProperty("创建人用户ID")
    @ApiParam(hidden = true)
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @ApiParam(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("最后修改人用户ID")
    @ApiParam(hidden = true)
    private Long updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最后修改时间")
    @ApiParam(hidden = true)
    private Date updateTime;

    @ApiModelProperty(value = "数据版本")
    @ApiParam(hidden = true)
    private Integer version;

}
